package day10;

import java.util.Scanner;

public class TimeCalculation {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个月份：");
        int month = sc.nextInt();

        if (month < 1 || month > 12) {
            System.out.println("输入月份有误");
        } else if (month >= 3 && month <= 5) {
            System.out.println("春季");
        } else if (month >= 6 && month <= 8) {
            System.out.println("夏季");
        } else if (month >= 9 && month <= 11) {
            System.out.println("秋季");
        } else {
            System.out.println("冬季");
        }
    }
}
